/* =======================
   仿Minecraft 1.12.2 Java版精确样式
   ======================= */

/* ====== 全局背景与字体 ====== */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(rgb(255,255,255,0.1), rgb(255,255,255,0.1)), url('../assets/images/panorama.png');
    background-repeat: repeat-x;
    background-size: 500vh 100vh; /* 宽高比5:1，宽度为5倍视口高度 */
    background-position: 0 0;
    font-family: 'Minecraft', monospace;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: panorama-scroll 180s linear infinite;
}

/* 背景滚动动画 */
@keyframes panorama-scroll {
    0% { background-position: 0 0; }
    100% { background-position: -500vh 0; }
}

/* ====== 主容器与标题 ====== */
.container {
    width: 854px;
    height: 480px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    width: 1122px;
    height: 130px;
    background: url('../assets/images/title.png') no-repeat center;
    image-rendering: pixelated;
    position: relative;
    text-align: center;
    line-height: 121px;
    font-size: 0;
    text-shadow: 
        2px 2px 0 #3f3f3f,
        -2px -2px 0 #3f3f3f;
}

/* ====== 闪烁标语 ====== */
.splash {
    position: absolute;
    right: -40px;   /* 适当调整，让标语在标题右下 */
    bottom: 10px;
    transform: rotate(-20deg);
    color: #ffff00;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #3f3f3f, 0 0 8px #fff700;
    animation: splash-blink 0.5s infinite steps(2, start);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 2;
}

@keyframes splash-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ====== 主菜单布局 ====== */
.menu {
    margin: 100px auto auto;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* 按钮间垂直间距 */
}

/* ====== 按钮样式 ====== */
.button {
    width: 400px;
    height: 40px;
    background: url('../assets/images/button.jpg') no-repeat center/cover;
    color: #FFFFFF;
    font-size: 20px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    user-select: none;
    border: none;
    transition: all 0s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.button:hover {
    background-image: url('../assets/images/button_onmouseover.png');
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.button:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ====== 菜单最后一行横排按钮 ====== */
.menu-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-top: 32px; /* 与上一行间距 */
}

.menu-row .button-wide {
    flex: 0 0 195px; /* 宽度195px，flex布局下生效 */
}

/* 宽按钮通用样式 */
.button-wide {
    background-size: 100% 100%;
    /*TODO: 三段式背景*/
}

/* ====== 脚注样式 ====== */
.left-footer, .right-footer {
    position: fixed;
    bottom: 0;
    width: 640px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(0,0,0,0);
    z-index: 10;
    box-sizing: border-box;
    line-height: 0.8;
    pointer-events: none; /* 防止挡住按钮点击 */
}
.left-footer {
    left: 0;
    text-align: left;
    padding: 4px 18px 0px 0px;
}

.right-footer {
    right: 0;
    width: auto;
    text-align: right;
    padding: 4px 0px 0px 4px;
}

.left-footer a, .right-footer a {
    color: #ffff00;
    text-decoration: underline;
    pointer-events: auto; /* 链接可点击 */
}

.left-footer p, .right-footer p {
    margin: 0 0 4px 0;
}

.right-footer a {
    display: inline;
    color: #ffff00;
    font-weight: bold;
}

/* ====== 字体引入 ====== */
@font-face {
    font-family: 'Minecraft';
    src: url('../assets/fonts/Mojangles.ttf') format('truetype');
}


